package io.renren.modules.app.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;
import io.renren.modules.app.dao.YcUserEducationDao;
import io.renren.modules.app.dao.YcUserExperienceDao;
import io.renren.modules.app.entity.YcUserExperienceEntity;

import io.renren.modules.app.service.YcUserExperienceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

@Service("ycUserExperienceService")
public class YcUserExperienceServiceImpl extends ServiceImpl<YcUserExperienceDao, YcUserExperienceEntity> implements YcUserExperienceService {
    @Resource
    private  YcUserExperienceDao ycUserExperienceDao;

    //新增分页
    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<YcUserExperienceEntity> page = this.page(
                new Query<YcUserExperienceEntity>().getPage(params),
                new QueryWrapper<YcUserExperienceEntity>()
        );
        return new PageUtils(page);
    }
    @Override
    public YcUserExperienceEntity getExperienceById(int id) {
        return ycUserExperienceDao.getExperienceById(id);
    }


}